package testJdk.io.reader;

import java.io.IOException;
import java.io.StringReader;

/**
 * @Name : com.io.reader.StringReaderTester
 * @Description : 描述
 * Created by cyd on 2020-12-23 11:31:33
 */
public class StringReaderTester {
    public static void main(String[] args) throws IOException {
        StringReader reader = new StringReader("abcd,你好！");
        int data;
        while ((data = reader.read()) != -1) {
            System.out.println((char) data);
        }
        reader.close();
    }
}
